package com.dong;

import java.lang.reflect.Constructor;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-03-05 17:06
 **/
public class Child extends Person {
    @Override
    public String play() {
        return "Child.play()";
    }

    public static void main(String[] args) throws NoSuchMethodException {
//        Child child = new Child();
//        String play = child.play();
//        System.out.println(play);
        Class<Person> personClass = Person.class;
        Constructor<Person> constructor = personClass.getConstructor(String.class);
        System.out.println(constructor);
        Class<Integer> type = Integer.TYPE;
        System.out.println(type);
        Test test = null;
        test.test1();

    }
}
class Test{
    public static void test1(){
        System.out.println("test1");
    }
}
